home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.19950528-19950726
/
000032_news@columbia.edu_Wed May 31 15:47:17 1995.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
3KB
Received: from apakabar.cc.columbia.edu by watsun.cc.columbia.edu with SMTP id AA17174
(5.65c+CU/IDA-1.4.4/HLK for <kermit.misc@watsun.cc.columbia.edu>); Fri, 2 Jun 1995 03:35:37 -0400
Received: by apakabar.cc.columbia.edu id AA13948
(5.65c+CU/IDA-1.4.4/HLK for kermit.misc@watsun); Fri, 2 Jun 1995 03:35:35 -0400
Newsgroups: comp.protocols.kermit.misc
Path: news.columbia.edu!spcuna!solaris.cc.vt.edu!news.mathworks.com!usenet.eel.ufl.edu!interlog.com!news1.fonorola.net!fonorola!torn!nott!cunews!boris!rmallett
From: rmallett@boris.ccs.carleton.ca (Rick Mallett)
Subject: Kermit scripting problems
X-Nntp-Posting-Host: boris.carleton.ca
Message-Id: <D9G96t.7DF@cunews.carleton.ca>
Sender: news@cunews.carleton.ca (News Administrator)
Organization: Carleton University
X-Newsreader: TIN [version 1.2 PL2]
Date: Wed, 31 May 1995 15:47:17 GMT
Lines: 42
Apparently-To: kermit.misc@watsun.cc.columbia.edu
I've written some scripts to automate upload using kermit for
users of a text based menu interface to Unix. I prompt the users for a
list of files to upload and I would like to allow responses such as
the following:
Enter list of files to upload: c:\autoexec.bat c:\temp\*.*
I've run into a couple of problems and I was wondering if anyone
could give me some advice. I'm using expect/tcl to automatically
generate sequences of instructions such as the following:
apc server
set command quoting off
remote cd c:\
get autoexec.bat
remote cd c:\temp
get *.*
set command quoting on
fin
apc connect
which will be executed by Unix kermit-5A-190 on the assumption that
the remote machine is running MS-Kermit 3.14.
One problem is that if the directory `c:\temp' does not exist the
`get *.*' will upload all of the files in the current directory.
I tried adding `if success get*.*' immediately after the command
`remote cd c:\temp' but that doesn't work, presumably because the
status on the remote machine is not available for checking. Is
there any way for me to detect in a script if the `remote cd'
worked or not, and if not, is there a better way to do this?
I also found that `remote cd c:' was not the same as `remote cd c:\',
so I appended `\' to the string but then `remote cd c:\temp\'
seemed to fail. Is this a bug?
----------------------------------------------------------------------
Rick Mallett
Carleton University
Email address: rmallett@ccs.carleton.ca
----------------------------------------------------------------------